package com.yun.controller;

import com.yun.entity.UAccount;
import com.yun.service.UserCenterService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (UAccount)表控制层
 *
 * @author makejava
 * @since 2021-10-27 11:14:49
 */
@RestController
@RequestMapping("uAccount")
public class UserCenterController {
    /**
     * 服务对象
     */
    @Resource
    private UserCenterService userCenterService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UAccount selectOne(Integer id) {
        System.out.println(this.userCenterService.queryById(id));
        return this.userCenterService.queryById(id);
    }

}